/**
 *  @description 画布中的渲染部分
 */

import { Typography, Input } from 'antd'
import React from 'react'
import { QuestionInputPropsType, QuestionInputDefaultProps } from './interface'

const QuestionInput: React.FC<QuestionInputPropsType> = props => {
  const { title, placeholder } = { ...QuestionInputDefaultProps, ...props }

  return (
    <>
      <Typography.Paragraph strong>{title}</Typography.Paragraph>
      <div>
        <Input placeholder={placeholder}></Input>
      </div>
    </>
  )
}

export default QuestionInput
